package com.cskaoyan.bean.StatInfo;

import lombok.Data;

import java.util.Objects;

/**
 * 
 * 创建日期: 2022/05/06 17:47
 * @author wangyonghong
 */
 @Data
public class GoodEntity {

    private String   day;
    private Integer  orders;
    private Integer  products;
    private Integer amount;
    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof GoodEntity)) return false;
        GoodEntity that = (GoodEntity) o;
        return Objects.equals(getAmount(), that.getAmount()) &&
                Objects.equals(getDay(), that.getDay()) &&
                Objects.equals(getOrders(), that.getOrders()) &&
                Objects.equals(getProducts(), that.getProducts());
    }

    @Override
    public int hashCode() {
        return Objects.hash(getAmount(), getDay(), getOrders(), getProducts());
    }
}
